<?php
// header("Content-type: text/html; charset=utf-8");
header("Access-Control-Allow-Origin: *");
// header("Access-Control-Allow-Methods: POST, GET, OPTIONS");
// header("Access-Control-Allow-Headers: Content-Type, Authorization, Accept,X-Requested-With");
// header('Content-type: application/json');
if (get_magic_quotes_gpc()){
	function stripslashes_deep($value){
		$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); 
		return $value; 
	}
	$_POST = array_map('stripslashes_deep', $_POST);
	$_GET = array_map('stripslashes_deep', $_GET);
	$_COOKIE = array_map('stripslashes_deep', $_COOKIE); 
}


//ob_end_clean();
define('APP_DEBUG',true);
define('OPEN_LOG_WRITE', true);
define('APP_NAME', 'BEESCRM');
define('CONF_PATH','./BEESCRMdata/conf/');
define('RUNTIME_PATH','./BEESCRMdata/logs/');
define('TMPL_PATH','./themes/');
define('HTML_PATH','./BEESCRMdata/html/');
define('APP_PATH','./BEESCRM/');
define('EDITOR','./themes/Static/ueditor/');
define('CORE','./BEESCRM/_Core');
define('ASSETS','./assets');

//目录安全文件的设置
//define('BUILD_DIR_SECURE', true);
//define('DIR_SECURE_FILENAME','index.html');
//define('DIR_SECURE_CONTENT','deny Access!');

require(CORE.'/BEESCRM.php');


?>
